const mysql = require('mysql');
const pool = mysql.createPool({
  host: '127.0.0.1',
  user: 'root',
  password: 'zt4945327',
  database: 'test',
});

// pool.getConnection((err, connection) => {
//   connection.query('SELECT * FROM user', (err, results, fields) => {
//     if (err) throw err;
//     console.log(results)
//     connection.release();
//   });
// });

module.exports = pool;